package app.anstudy.household.common;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class HouseholdActivity extends Activity implements OnClickListener{

	EditText mEditText01;
	Button mButton01;

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.input);

        mButton01 = (Button) findViewById(R.id.button01);
        Button button02 = (Button) findViewById(R.id.button02);
        Button button03 = (Button) findViewById(R.id.button03);
        Button button04 = (Button) findViewById(R.id.button03);
        mButton01.setTag("lunch");
        mButton01.setOnClickListener(this);
        button02.setOnClickListener(this);
        button03.setOnClickListener(this);
        button04.setOnClickListener(this);
        mEditText01 = (EditText) findViewById(R.id.editText01);

    }

	public void onClick(View v) {

		switch (v.getId()) {
		case R.id.button01:
			Toast.makeText(getApplicationContext(), "buttono1" + mButton01.getText(), Toast.LENGTH_SHORT).show();
			mEditText01.setText((String)mButton01.getTag());
			break;
		case R.id.button02:
			Toast.makeText(getApplicationContext(), "buttono2", Toast.LENGTH_SHORT).show();
			break;
		case R.id.button03:

			break;

		case R.id.button04:

			break;
		default:
			break;
		}
	}
}